package com.codeduck.properties.defaultConfig;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 第一种通过@Value获取默认配置文件application.yml
 *
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @since: 2021-12-22
 */
@Configuration
public class SpringDefaultProperties {

    @Value("${user.name}")
    private String name;

    @Value("${user.email}")
    private String email;

    @Value("${user.fullValue}")
    private String fullValue;

    public String getName() {
        return name;
    }

    public String getEmail() {
        return email;
    }

    public String getFullValue() {
        return fullValue;
    }
}
